@echo off
  SET uiName=cetc54.ui.all.js
  SET uiMinName=cetc54.ui.all.min.js  
  CD /d %~dp0
  CD ..
  md release
  SET JSFOLDER=%CD%\src\
  SET YUIFOLDER=%CD%\tools\
  SET ReleaseDER=%CD%\release\

  echo delete %uiName%...
  IF EXIST %YUIFOLDER%%uiName% del /F %YUIFOLDER%%uiName%
  echo search JS...
  for /f %%a in (%YUIFOLDER%js_list.txt) do (
	  echo unite %%a ...
	  type %JSFOLDER%%%a >> %YUIFOLDER%%uiName%
	  )
  echo compressor %uiName%
  chdir %YUIFOLDER%
  java -jar yuicompressor-2.4.8.jar --type js  %uiName% -o %uiMinName%
  echo publish to release folder
  move /y %YUIFOLDER%%uiName% %ReleaseDER%%uiName%
  move /y %YUIFOLDER%%uiMinName% %ReleaseDER%%uiMinName%
  echo finish!
 